package com.itheima;

public class Son extends Father implements Mather{

    private Cat cat;

    public Cat getCat() {
        return cat;
    }

    public void setCat(Cat cat) {
        this.cat = cat;
    }

    public void car(){
        System.out.println("Son has a car");
    }

    public void doCat(){
        System.out.println(cat.getName()+" 的年龄是 "+cat.getAge());
    }

    public Integer dotestinput(){return null;};

    @Override
    public Integer haveMoney(Integer money){
        System.out.println("My Son have "+money+" million");
        return 1234567;
    }

    @Override
    public Integer haveMoney01(Integer money){
        System.out.println("My father have "+money+" million");
        return 123123;
    }

    @Override
    public Integer doMother() {
        return 99999;
    }
}
